import request from '@/utils/request'

export function carouselList(data) {
    return request({
        url: '/v1/banner/find',
        method: 'post',
        data
    })
}

export function carouselCreate(data) {
    return request({
        url: '/v1/banner/upload',
        method: 'post',
        data
    })
}

export function carouselDelete(data) {
    return request({
        url: '/v1/banner/delete/by/id',
        method: 'post',
        data
    })
}

export function carouselChangeShow(data) {
    return request({
        url: '/v1/banner/update/hidden',
        method: 'post',
        data
    })
}